<%= form_for(@book_info) do |f| %>
  <% if @book_info.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@book_info.errors.count, "error") %> prohibited this book_info from being saved:</h2>

      <ul>
      <% @book_info.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :isbn %><br />
    <%= f.text_field :isbn %>
  </div>
  <div class="field">
    <%= f.label :publishDate %><br />
    <%= f.datetime_select :publishDate %>
  </div>
  <div class="field">
    <%= f.label :publisher %><br />
    <%= f.text_field :publisher %>
  </div>
  <div class="field">
    <%= f.label :author %><br />
    <%= f.text_field :author %>
  </div>
  <div class="field">
    <%= f.label :vote %><br />
    <%= f.text_field :vote %>
  </div>
  <div class="field">
    <%= f.label :numberOfVote %><br />
    <%= f.number_field :numberOfVote %>
  </div>
  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :category %><br />
    <%= f.text_field :category %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
